<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class Integer | sweetphp</title>

	<script type="text/javascript" src="resources/combined.js?2802521858"></script>
	<script type="text/javascript" src="elementlist.js?3776638906"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="package-SweetPHP.html">SweetPHP<span></span></a>
						<ul>
				<li class="active"><a href="package-SweetPHP.System.html">System<span></span></a>
						<ul>
				<li><a href="package-SweetPHP.System.Core.html">Core</a>
						</li>
				<li><a href="package-SweetPHP.System.Test.html">Test</a>
						</li>
				<li class="active"><a href="package-SweetPHP.System.Utility.html">Utility</a>
						</li>
							</ul></li></ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-DataParam.html">DataParam</a></li>
				<li><a href="class-DateNow.html">DateNow</a></li>
				<li><a href="class-Dir.html">Dir</a></li>
				<li><a href="class-Float.html">Float</a></li>
				<li><a href="class-Form.html">Form</a></li>
				<li><a href="class-Helpers.html">Helpers</a></li>
				<li><a href="class-InputText.html">InputText</a></li>
				<li class="active"><a href="class-Integer.html">Integer</a></li>
				<li><a href="class-Logger.html">Logger</a></li>
				<li><a href="class-Mask.html">Mask</a></li>
				<li><a href="class-SEO.html">SEO</a></li>
				<li><a href="class-Session.html">Session</a></li>
				<li><a href="class-String.html">String</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-SweetPHP.System.Utility.html" title="Summary of SweetPHP\System\Utility"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Integer</h1>


	<div class="description">
	SweetPHP<br />

<p><b>Integer</b></p>

<p>Realiza conversoes para manter tipos de forma organizada</p>
<br />

	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-SweetPHP.html">SweetPHP</a>\<a href="package-SweetPHP.System.html">System</a>\<a href="package-SweetPHP.System.Utility.html">Utility</a><br />

				<b>Copyright:</b>
				Copyright (c) 2013 - 2014, Ilines.<br />
				<b>Author:</b>
				sweetphp<br />
		<b>Located at</b> <a href="source-class-Integer.html#3-77" title="Go to source code">libs/system/utility/Integer.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="stringToInteger" id="_stringToInteger">

		<td class="attributes"><code>
			 public static
			<code><a href="class-Integer.html">Integer</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_stringToInteger">#</a>
		<code><a href="source-class-Integer.html#14-27" title="Go to source code">stringToInteger</a>( <span>string <var>$var</var></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>String To Integer (stringToInteger)</b></p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>String To Integer (stringToInteger)</b></p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$var</var></dt>
					<dd><code>string</code><br>$var
<p>Entra String e retorna Integer</p>
</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="class-Integer.html">Integer</a></code></code><br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>
				<h4>Example</h4>
				<div class="list">
						stringToInteger int number = 0; number = stringToInteger("500"); (Integer) echo
500;<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="integerToString" id="_integerToString">

		<td class="attributes"><code>
			 public static
			<code><a href="class-String.html">String</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_integerToString">#</a>
		<code><a href="source-class-Integer.html#29-43" title="Go to source code">integerToString</a>( <span>integer <var>$var</var> = <span class="php-num">0</span></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>Integer To String(integerToString)</b></p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>Integer To String(integerToString)</b></p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$var</var></dt>
					<dd><code>integer</code><br>$var
<p>Entra Integer e retorna String</p>
</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="class-String.html">String</a></code></code><br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>
				<h4>Example</h4>
				<div class="list">
						integerToString int number = 0; number = integerToString(500); (String) echo
500;<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="integerToFloat" id="_integerToFloat">

		<td class="attributes"><code>
			 public static
			<code><a href="class-Float.html">Float</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_integerToFloat">#</a>
		<code><a href="source-class-Integer.html#45-59" title="Go to source code">integerToFloat</a>( <span>integer <var>$var</var> = <span class="php-num">0</span></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>Integer To Float(integerToFloat)</b></p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>Integer To Float(integerToFloat)</b></p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$var</var></dt>
					<dd><code>integer</code><br>$var
<p>Entra Integer e retorna Float</p>
</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="class-Float.html">Float</a></code></code><br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>
				<h4>Example</h4>
				<div class="list">
						integerToFloat int number = 0; number = integerToFloat(500); (String) echo
500.00;<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="compareInt" id="_compareInt">

		<td class="attributes"><code>
			 public static
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_compareInt">#</a>
		<code><a href="source-class-Integer.html#61-75" title="Go to source code">compareInt</a>( <span>integer <var>$intA</var> = <span class="php-num">0</span></span>, <span>mixed <var>$intB</var> = <span class="php-num">0</span></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>Compare Int(compareInt)</b></p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>Compare Int(compareInt)</b></p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$intA</var></dt>
					<dd><code>integer</code><br>$intA, $intB
<p>Compara Integer A e igual a Integer B? Accept Method POST and GET</p>
</dd>
					<dt><var>$intB</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br>(true / false)<br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>
				<h4>Example</h4>
				<div class="list">
						compareInt(1,5) Se 1 for igual a 5 retorna verdadeiro senao retorna falso;<br />
				</div>


		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		sweetphp API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
